package com.neu.domain;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.NotEmpty;

/**
 * 挂号实体
 * @author wudagai
 *
 */
public class Registered implements Serializable{

	private static final long serialVersionUID = 7574682146416395197L;
	private Integer personid;
	private String personname;
	private Integer age;
	private Date birthday;
	private String idcard;
	private String address;
	private Reglevel reglevel;
	private Dept dept;
	private Doctor doctor;
	private Integer flag;
	private Double money;
	private Date regdate;
	private Integer seeingstate;
	private Integer regstate;
	private CaseHistory caseHistory;
	public Registered(Integer personid, String personname, Integer age, Date birthday, String idcard, String address,
			Reglevel reglevel, Dept dept, Doctor doctor, Integer flag, Double money, Date regdate, Integer seeingstate,
			Integer regstate, CaseHistory caseHistory) {
		super();
		this.personid = personid;
		this.personname = personname;
		this.age = age;
		this.birthday = birthday;
		this.idcard = idcard;
		this.address = address;
		this.reglevel = reglevel;
		this.dept = dept;
		this.doctor = doctor;
		this.flag = flag;
		this.money = money;
		this.regdate = regdate;
		this.seeingstate = seeingstate;
		this.regstate = regstate;
		this.caseHistory = caseHistory;
	}
	public Registered() {
		super();
		// TODO Auto-generated constructor stub
	}
	public Integer getPersonid() {
		return personid;
	}
	public void setPersonid(Integer personid) {
		this.personid = personid;
	}
	public String getPersonname() {
		return personname;
	}
	public void setPersonname(String personname) {
		this.personname = personname;
	}
	public Integer getAge() {
		return age;
	}
	public void setAge(Integer age) {
		this.age = age;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getIdcard() {
		return idcard;
	}
	public void setIdcard(String idcard) {
		this.idcard = idcard;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}
	public Reglevel getReglevel() {
		return reglevel;
	}
	public void setReglevel(Reglevel reglevel) {
		this.reglevel = reglevel;
	}
	public Dept getDept() {
		return dept;
	}
	public void setDept(Dept dept) {
		this.dept = dept;
	}
	public Doctor getDoctor() {
		return doctor;
	}
	public void setDoctor(Doctor doctor) {
		this.doctor = doctor;
	}
	public Integer getFlag() {
		return flag;
	}
	public void setFlag(Integer flag) {
		this.flag = flag;
	}
	public Double getMoney() {
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
	public Date getRegdate() {
		return regdate;
	}
	public void setRegdate(Date regdate) {
		this.regdate = regdate;
	}
	public Integer getSeeingstate() {
		return seeingstate;
	}
	public void setSeeingstate(Integer seeingstate) {
		this.seeingstate = seeingstate;
	}
	public Integer getRegstate() {
		return regstate;
	}
	public void setRegstate(Integer regstate) {
		this.regstate = regstate;
	}
	public CaseHistory getCaseHistory() {
		return caseHistory;
	}
	public void setCaseHistory(CaseHistory caseHistory) {
		this.caseHistory = caseHistory;
	}
	@Override
	public String toString() {
		return "Registered [personid=" + personid + ", personname=" + personname + ", age=" + age + ", birthday="
				+ birthday + ", idcard=" + idcard + ", address=" + address + ", reglevel=" + reglevel + ", dept=" + dept
				+ ", doctor=" + doctor + ", flag=" + flag + ", money=" + money + ", regdate=" + regdate
				+ ", seeingstate=" + seeingstate + ", regstate=" + regstate + ", caseHistory=" + caseHistory + "]";
	}
	
}
